package com.weayer.remote;

import com.weayer.dto.ResponseResult;
import com.weayer.response.AddTerminalResponse;
import com.weayer.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @description: 调用service-map服务
 * @author: Weayer
 **/
@FeignClient("service-map")
public interface ServiceMapClient {
    @RequestMapping(method = RequestMethod.POST, value = "/terminal/add")
    public ResponseResult<AddTerminalResponse> addTerminal(@RequestParam String name, @RequestParam String desc);
    @RequestMapping(method = RequestMethod.POST, value = "/track/add")
    public ResponseResult<TrackResponse> addTrack(@RequestParam String tid);
}
